package com.vdong.trade.trading.entity.mo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 订单表
 * @author: Mr.WangGang
 * @create: 2018-11-29 上午 9:50
 **/
@Data
@Entity
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
@Table(name = "`order`")
public class OrderMO {
    @Id
    @Column(name="id")
    private Long id;

    @Column(name="order_no")
    private String orderNo;

    @Column(name="order_amount")
    private BigDecimal orderAmount;

    @Column(name="order_model")
    private String orderModel;

    @Column(name="order_type")
    private String orderType;

    @Column(name="buyer_key")
    private Long buyerKey;

    @Column(name="product_key")
    private Long productKey;

    @Column(name="order_status")
    private String orderStatus;

    @Column(name="status")
    private String status;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="update_time")
    private Date updateTime;
}
